package reduce.fz.com.reduce.service;

import android.content.Context;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.abstracts.AbResponseListener;
import reduce.fz.com.reduce.bean.PkGroup;
import reduce.fz.com.reduce.util.ApiUtil;
import reduce.fz.com.reduce.util.HttpUtils;

/**
 * Created by qingshengzheng on 16/1/19.
 */
public class PkService {
    private Context context;

    public PkService(Context context) {
        this.context = context;
    }


    public void pkGroupCreate(PkGroup pkGroup, AbResponseListener listener) {
        String url = ApiUtil.getApi(context, R.array.api_pk_group_create);
        HttpUtils.jsonPost(url,pkGroup, listener);
    }
}
